cd "F:\Dropbox\School\Research Projects\Populism\Articles\Populist Psychology\Submission files\JOP 2020\Final\Replication files"

use "study 1 prepped.dta", clear

label define treatlab2 0 "Control" 1 "Econ. Anxiety" 2 "Econ. Anger" 3 "Populism" 4 "Cultural Discontent"
label values treat treatlab2

*Table 2
sem (CULTDISC-> cd1 cd2 cd4 cd8 cd9) (IDMARG-> cd6 cd14 cd16 cd17 cd20), var(CULTDISC@1 IDMARG@1) method(mlmv) standardized cov (e.cd8*e.cd9) cov(e.cd9*e.cd14)
estat gof, stat(all)
estat eqgof
predict cultdisc idmarg, latent (CULTDISC IDMARG)
